package com.party.core.model.commune;

import com.party.core.model.BaseModel;

import java.util.List;
import java.util.Map;


/**
 * @program: party
 * @description: 动态
 * @author: Hua Qunhao
 * @create: 2019-12-18 14:43
 **/
public class CMoment extends BaseModel {

    //内容
    private String content;
    //封面图，最多9张
    private String pics;
    //业务ids(会员id/或其他)
    private String businessIds;
    //多媒体链接
    private String multimediaUrl;
    //目标id
    private String targetId;
    //动态类型（0：系统通知， 1：新会员加入，2：活动发布，3：圈子话题，4：相册上传，5：批量添加积分，6：文章）
    private Integer momentType;
    //数据类型（1：图文，2：视频）
    private Integer dataType;
    //发送方式（0:自动；1：手动）
    private Integer momentWay;
    //个人发布者
    private String memberId;
    //是否置顶（0：否，1：是）
    private Integer isTop;
    //是否全局显示（0：否，1：是）
    private Integer isDisplayAll;

    private String announcerOrg;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getPics() {
        return pics;
    }

    public void setPics(String pics) {
        this.pics = pics;
    }

    public String getBusinessIds() {
        return businessIds;
    }

    public void setBusinessIds(String businessIds) {
        this.businessIds = businessIds;
    }

    public String getMultimediaUrl() {
        return multimediaUrl;
    }

    public void setMultimediaUrl(String multimediaUrl) {
        this.multimediaUrl = multimediaUrl;
    }

    public String getTargetId() {
        return targetId;
    }

    public void setTargetId(String targetId) {
        this.targetId = targetId;
    }

    public Integer getMomentType() {
        return momentType;
    }

    public void setMomentType(Integer momentType) {
        this.momentType = momentType;
    }

    public Integer getMomentWay() {
        return momentWay;
    }

    public void setMomentWay(Integer momentWay) {
        this.momentWay = momentWay;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public Integer getIsTop() {
        return isTop;
    }

    public void setIsTop(Integer isTop) {
        this.isTop = isTop;
    }

    public Integer getIsDisplayAll() {
        return isDisplayAll;
    }

    public void setIsDisplayAll(Integer isDisplayAll) {
        this.isDisplayAll = isDisplayAll;
    }

    public Integer getDataType() {
        return dataType;
    }

    public void setDataType(Integer dataType) {
        this.dataType = dataType;
    }

    public String getAnnouncerOrg() {
        return announcerOrg;
    }

    public void setAnnouncerOrg(String announcerOrg) {
        this.announcerOrg = announcerOrg;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof CMoment)) return false;
        if (!super.equals(o)) return false;

        CMoment cMoment = (CMoment) o;

        if (content != null ? !content.equals(cMoment.content) : cMoment.content != null) return false;
        if (pics != null ? !pics.equals(cMoment.pics) : cMoment.pics != null) return false;
        if (businessIds != null ? !businessIds.equals(cMoment.businessIds) : cMoment.businessIds != null) return false;
        if (multimediaUrl != null ? !multimediaUrl.equals(cMoment.multimediaUrl) : cMoment.multimediaUrl != null)
            return false;
        if (targetId != null ? !targetId.equals(cMoment.targetId) : cMoment.targetId != null) return false;
        if (momentType != null ? !momentType.equals(cMoment.momentType) : cMoment.momentType != null) return false;
        if (dataType != null ? !dataType.equals(cMoment.dataType) : cMoment.dataType != null) return false;
        if (momentWay != null ? !momentWay.equals(cMoment.momentWay) : cMoment.momentWay != null) return false;
        if (memberId != null ? !memberId.equals(cMoment.memberId) : cMoment.memberId != null) return false;
        if (isTop != null ? !isTop.equals(cMoment.isTop) : cMoment.isTop != null) return false;
        return isDisplayAll != null ? isDisplayAll.equals(cMoment.isDisplayAll) : cMoment.isDisplayAll == null;
    }

    @Override
    public int hashCode() {
        int result = super.hashCode();
        result = 31 * result + (content != null ? content.hashCode() : 0);
        result = 31 * result + (pics != null ? pics.hashCode() : 0);
        result = 31 * result + (businessIds != null ? businessIds.hashCode() : 0);
        result = 31 * result + (multimediaUrl != null ? multimediaUrl.hashCode() : 0);
        result = 31 * result + (targetId != null ? targetId.hashCode() : 0);
        result = 31 * result + (momentType != null ? momentType.hashCode() : 0);
        result = 31 * result + (dataType != null ? dataType.hashCode() : 0);
        result = 31 * result + (momentWay != null ? momentWay.hashCode() : 0);
        result = 31 * result + (memberId != null ? memberId.hashCode() : 0);
        result = 31 * result + (isTop != null ? isTop.hashCode() : 0);
        result = 31 * result + (isDisplayAll != null ? isDisplayAll.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "CMoment{" +
                "content='" + content + '\'' +
                ", pics='" + pics + '\'' +
                ", businessIds='" + businessIds + '\'' +
                ", multimediaUrl='" + multimediaUrl + '\'' +
                ", targetId='" + targetId + '\'' +
                ", momentType=" + momentType +
                ", dataType=" + dataType +
                ", momentWay=" + momentWay +
                ", memberId='" + memberId + '\'' +
                ", isTop=" + isTop +
                ", isDisplayAll=" + isDisplayAll +
                '}';
    }
}
